import axios from "axios";
import config from "@/util/config.js";

//创建一个axios的对象
const empAPI = {
    mdBaseUrl: config.mdUrl+"/md",
    mdProMat: "/emp",
    timeout: 5000,
    getEmployeesByName(param, callback) {
        axios.get(`${this.mdBaseUrl}${this.mdProMat}?name=${param.emp}`).then((res) => {
            callback(res.data);
        })
    },
};
export default empAPI;